/*
 * hardware.h
 *
 * Created: 2013/12/26 17:00:04
 *  Author: alivehex
 */ 


#ifndef HARDWARE_H_
#define HARDWARE_H_

#define MOSI_PORT	C
#define MOSI_PIN	(1 << 3)	// PC3

#define MISO_PORT	B
#define MISO_PIN	(1 << 3)	// PB3

#define SPCK_PORT	B
#define SPCK_PIN	(1 << 2)	// PC2

#define NPCS_PORT	A
#define NPCS_PIN	(1 << 7)	// PB0

#define IRQ_PORT	A
#define IRQ_PIN		(1 << 4)	// PA4	INT2

#define CE_PORT		C
#define CE_PIN		(1 << 2)	// PA7

#define LED_PORT	C
#define LED_PIN		(1 << 6)	// PA3

#define IRTX_PORT	A
#define IRTX_PIN	(1 << 2)	// PA2

#define ROLE_MODE_PORT	B
#define ROLE_MODE_PIN	(1 << 0)


#endif /* HARDWARE_H_ */